package main

import (
	"fmt"
	"time"
)

func main() {
	ch := make(chan int)
	go func() {
		ch <- 1
	}()
	select {
	case <-time.After(time.Second * 5):
		fmt.Println(<-ch)

	}
}
